package com.aop;
/**
 *
 **/

/**
 * @Author weiwei
 * @Date 2022-03-31 16:59
 * @description
 **/
public class Aop {

    public  static <T> T get(Class<T> clazz){
        try {
            return clazz.getConstructor().newInstance();
        }catch (Exception e){

        }
        return null;
    }

    public static void invoke(Inteceptor interceptor, Invoke invoke){
        interceptor.invoke(invoke);
    }
}
